//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.comprosoft.telnet.io;

public enum BackColor {
    BLACK("\u001b[40m"),
    RED("\u001b[41m"),
    GREEN("\u001b[42m"),
    YELLOW("\u001b[43m"),
    BLUE("\u001b[44m"),
    MAGENTA("\u001b[45m"),
    CYAN("\u001b[46m"),
    WHITE("\u001b[47m");

    private String EscapeCode;

    private BackColor(String EscapeCode) {
        this.EscapeCode = EscapeCode;
    }

    public String GetEscapeCode() {
        return this.EscapeCode;
    }

    public static BackColor NameToColor(String name) {
        name = name.toLowerCase();
        byte var2 = -1;
        switch(name.hashCode()) {
        case -2073251909:
            if (name.equals("dkyellow")) {
                var2 = 40;
            }
            break;
        case -2025753022:
            if (name.equals("dkmagenta")) {
                var2 = 28;
            }
            break;
        case -1910805820:
            if (name.equals("dark blue")) {
                var2 = 8;
            }
            break;
        case -1910764147:
            if (name.equals("dark cyan")) {
                var2 = 14;
            }
            break;
        case -1910651699:
            if (name.equals("dark gray")) {
                var2 = 20;
            }
            break;
        case -1844766387:
            if (name.equals("darkgreen")) {
                var2 = 25;
            }
            break;
        case -1831302640:
            if (name.equals("dk magenta")) {
                var2 = 30;
            }
            break;
        case -1681609634:
            if (name.equals("dark yellow")) {
                var2 = 44;
            }
            break;
        case -1399472490:
            if (name.equals("d blue")) {
                var2 = 5;
            }
            break;
        case -1399430817:
            if (name.equals("d cyan")) {
                var2 = 11;
            }
            break;
        case -1399318369:
            if (name.equals("d gray")) {
                var2 = 17;
            }
            break;
        case -1333433057:
            if (name.equals("dgreen")) {
                var2 = 21;
            }
            break;
        case -1332169352:
            if (name.equals("dk red")) {
                var2 = 36;
            }
            break;
        case -1330208415:
            if (name.equals("dkblue")) {
                var2 = 4;
            }
            break;
        case -1330166742:
            if (name.equals("dkcyan")) {
                var2 = 10;
            }
            break;
        case -1330054294:
            if (name.equals("dkgray")) {
                var2 = 16;
            }
            break;
        case -983703611:
            if (name.equals("dmagenta")) {
                var2 = 27;
            }
            break;
        case -958600659:
            if (name.equals("dk yellow")) {
                var2 = 42;
            }
            break;
        case -849648790:
            if (name.equals("darkyellow")) {
                var2 = 43;
            }
            break;
        case -734239628:
            if (name.equals("yellow")) {
                var2 = 50;
            }
            break;
        case -429193145:
            if (name.equals("d green")) {
                var2 = 23;
            }
            break;
        case -324260310:
            if (name.equals("dk green")) {
                var2 = 24;
            }
            break;
        case 112785:
            if (name.equals("red")) {
                var2 = 48;
            }
            break;
        case 3027034:
            if (name.equals("blue")) {
                var2 = 1;
            }
            break;
        case 3068707:
            if (name.equals("cyan")) {
                var2 = 2;
            }
            break;
        case 3091885:
            if (name.equals("dred")) {
                var2 = 33;
            }
            break;
        case 3181155:
            if (name.equals("gray")) {
                var2 = 45;
            }
            break;
        case 83448752:
            if (name.equals("d yellow")) {
                var2 = 41;
            }
            break;
        case 93418197:
            if (name.equals("d red")) {
                var2 = 35;
            }
            break;
        case 93818879:
            if (name.equals("black")) {
                var2 = 0;
            }
            break;
        case 95379134:
            if (name.equals("dblue")) {
                var2 = 3;
            }
            break;
        case 95420807:
            if (name.equals("dcyan")) {
                var2 = 9;
            }
            break;
        case 95533255:
            if (name.equals("dgray")) {
                var2 = 15;
            }
            break;
        case 95652522:
            if (name.equals("dkred")) {
                var2 = 34;
            }
            break;
        case 98619139:
            if (name.equals("green")) {
                var2 = 46;
            }
            break;
        case 113101865:
            if (name.equals("white")) {
                var2 = 49;
            }
            break;
        case 407458029:
            if (name.equals("d magenta")) {
                var2 = 29;
            }
            break;
        case 828922025:
            if (name.equals("magenta")) {
                var2 = 47;
            }
            break;
        case 899342809:
            if (name.equals("dark green")) {
                var2 = 26;
            }
            break;
        case 1441664347:
            if (name.equals("darkred")) {
                var2 = 37;
            }
            break;
        case 1525222911:
            if (name.equals("dark magenta")) {
                var2 = 32;
            }
            break;
        case 1546205299:
            if (name.equals("darkmagenta")) {
                var2 = 31;
            }
            break;
        case 1651953747:
            if (name.equals("dk blue")) {
                var2 = 6;
            }
            break;
        case 1651995420:
            if (name.equals("dk cyan")) {
                var2 = 12;
            }
            break;
        case 1652107868:
            if (name.equals("dk gray")) {
                var2 = 18;
            }
            break;
        case 1717993180:
            if (name.equals("dkgreen")) {
                var2 = 22;
            }
            break;
        case 1739491559:
            if (name.equals("dark red")) {
                var2 = 38;
            }
            break;
        case 1741452496:
            if (name.equals("darkblue")) {
                var2 = 7;
            }
            break;
        case 1741494169:
            if (name.equals("darkcyan")) {
                var2 = 13;
            }
            break;
        case 1741606617:
            if (name.equals("darkgray")) {
                var2 = 19;
            }
            break;
        case 2116782552:
            if (name.equals("dyellow")) {
                var2 = 39;
            }
        }

        switch(var2) {
        case 0:
            return BLACK;
        case 1:
            return BLUE;
        case 2:
            return CYAN;
        case 3:
        case 4:
        case 5:
        case 6:
        case 7:
        case 8:
            return BLUE;
        case 9:
        case 10:
        case 11:
        case 12:
        case 13:
        case 14:
            return CYAN;
        case 15:
        case 16:
        case 17:
        case 18:
        case 19:
        case 20:
            return BLACK;
        case 21:
        case 22:
        case 23:
        case 24:
        case 25:
        case 26:
            return GREEN;
        case 27:
        case 28:
        case 29:
        case 30:
        case 31:
        case 32:
            return MAGENTA;
        case 33:
        case 34:
        case 35:
        case 36:
        case 37:
        case 38:
            return RED;
        case 39:
        case 40:
        case 41:
        case 42:
        case 43:
        case 44:
            return YELLOW;
        case 45:
            return WHITE;
        case 46:
            return GREEN;
        case 47:
            return MAGENTA;
        case 48:
            return RED;
        case 49:
            return WHITE;
        case 50:
            return YELLOW;
        default:
            return WHITE;
        }
    }
}
